<div class="admin-content">

    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">订单详细</strong> /
            <small>订单查找</small>
        </div>
    </div>

    <div class="am-g">
        <div class="am-u-sm-12">
            <form class="am-form">
                <table class="am-table am-table-striped am-table-hover table-main">
                    <thead>
                    <tr>
                        <th class="table-check"><input type="checkbox"/></th>
                        <th class="table-id">ID</th>
                        <th class="table-type">购买者</th>
                        <th class="table-type">服务id</th>
                        <th class="table-type">服务名称</th>
                        <th class="table-type">服务具体项id</th>
                        <th class="table-type">服务具体项名称</th>
                        <th class="table-type">订单留言</th>
                        <th class="table-date am-hide-sm-only">单价</th>
                        <th class="table-date am-hide-sm-only">数量</th>
                        <th class="table-set">支付状态</th>
                        <th class="table-date am-hide-sm-only">订单状态</th>
                        <th class="table-set">订单类型</th>

                    </tr>
                    </thead>
                    <tbody>
                    <tr dir-paginate="orderdetail in orderdetails | filter:q | itemsPerPage: 8">
                        <td><input type="checkbox"/></td>
                        <td>{{orderdetail.orderid}}</td>
                        <td>{{orderdetail.buyname}}</td>

                        <td class="am-hide-sm-only"><a ui-sref="mealplan.serviceitemlist({serviceid:orderdetail.serviceid})">{{orderdetail.serviceid}}</a></td>
                        <td class="am-hide-sm-only"
                            data-ng-init="prepare_data(orderdetail.orderid,orderdetail.serviceitemid,orderdetail.serviceid)">{{orderdetail.serverName}}</a>
                        </td>
                        <td class="am-hide-sm-only"><a ui-sref="mealplan.serviceitemdetail({serviceitemid:orderdetail.serviceitemid})">{{orderdetail.serviceitemid}}</a></td>
                        <td>{{orderdetail.serverItemName}}</td>
                        <td>{{orderdetail.buyMessage}}</td>
                        <td class="am-hide-sm-only">{{orderdetail.fee|currency:'￥'}}</td>
                        <td class="am-hide-sm-only">{{orderdetail.num}}</td>
                        <td>{{orderdetail.paystate| pay_type}}</td>
                        <td class="am-hide-sm-only">{{orderdetail.status| order_status}}</td>
                        <td>{{orderdetail.type | order_type}}</td>
                    </tr>

                    </tbody>

                </table>

                <div class="am-cf">
                    <div class="text-center">
                        <dir-pagination-controls boundary-links="true" on-page-change="pageChangeHandler(newPageNumber)"
                                                 template-url="tpls/pagination/dirPagination.tpl.html"></dir-pagination-controls>
                    </div>
                </div>


            </form>

        </div>

    </div>
</div>